clear
set more off
version 17

********************************************************************************
***** The Short and Long Term Effects of In-Person Performance Feedback:
***** Evidence from a Large Bus Driver Coaching Program
********************************************************************************
***** Journal of Political Economy Microeconomics
********************************************************************************
***** Adriaan R. Soetevent and Gert-Jan Romensen
********************************************************************************
***** Master-file * 3.1 Data preparation
********************************************************************************
***** Latest update: 28-04-2025
********************************************************************************
global filepath "C:\JPEMicReplication"
global paperpath "$filepath\TablesGraphs"
cd "$filepath\Do-files"
set scheme s2color

ssc install diff

ssc install eventstudyinteract

ssc install avar

ssc install ftools

/*** 1. Cleaning ***/

do 1-Cleaning

/*** 2. Coach logs ***/

do 2-Coachlogs

/*** 3. Weather ***/

do 3-Weather

/*** 4. Driver information ***/

do 4-Driverinformation

/*** 5. Overall feedback ***/

do 5-Overallfeedback

/*** 6. Preparing for analysis ***/

do 6-Preparingforanalysis

/*** 7. Composition of feedback incidence ***/ 

do 7-Feedbackincidencecomposition

/*** 8. Eligibility for targeted peer-comparison messages ***/

do 8-Peereffort

/*** 9. Coaching times ***/ 

do 9-Coachingtimes

/*** 10. Creation data set for empirical analysis ***/

do 10-PreparationForAnalysis
	
/*** 11. Anonymize data set ***/
	
do 11-DataToDepository

/*** 12. Data Preparation (Separate) Eco Coach Survey Data ***/ 

do 12-SurveyDataPreparation


